Skip to content

ppc: apply fix for hard lockup#652

Merged
ojeda merged 2 commits intoRust-for-Linux:rustfrom
ojeda:ppc-apply-fix
Jan 27, 2022
Merged

ppc: apply fix for hard lockup#652
ojeda merged 2 commits intoRust-for-Linux:rustfrom
ojeda:ppc-apply-fix

Conversation

@ojeda
Copy link
Copy Markdown
Member

@ojeda ojeda commented Jan 27, 2022

Revert the revert and apply the fix to be in line with mainline.

See https://lore.kernel.org/linuxppc-dev/CANiq72n_FmDx=r-o9J8gYc6LpwRL5EGmhM6Xzwv27Xc7h1TNDw@mail.gmail.com/ for details.

ojeda and others added 2 commits January 27, 2022 15:25
…ndlers unless perf is in use""

This reverts commit 827556e.

This is done in order to use the actual fix that will appear in -rc2.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
The decrementer exception can fail to be cleared when the interrupt
returns in the case where the decrementer wraps with the next timer
still beyond decrementer_max. This results in a decrementer interrupt
storm. This is triggerable with small decrementer system with hard
and soft watchdogs disabled.

Fix this by always programming the decrementer if there was no timer.

Fixes: 0faf20a ("powerpc/64s/interrupt: Don't enable MSR[EE] in irq handlers unless perf is in use")
Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
@ojeda ojeda merged commit ed35954 into Rust-for-Linux:rust Jan 27, 2022
@ojeda ojeda deleted the ppc-apply-fix branch January 27, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants